package com.pgeneral.user.management.dao;

import com.pgeneral.user.management.entity.MbGeneralSignature;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MbGeneralSignatureMapper {

    /**
     * 获取签名信息
     * @param userId
     * @param date
     * @return
     */
    MbGeneralSignature getSignature(@Param("userid") String userId, @Param("date") String date);

    /**
     * 保存签名信息
     * @param mgs
     * @return
     */
    Integer insert(@Param("mgs")MbGeneralSignature mgs);

    /**
     * 批量保存签名信息
     * @param mgsList
     * @return
     */
    Integer batchinsert(@Param("mgsList") List<MbGeneralSignature> mgsList);
}
